package com.java.tutorials.jdk7.currency;

import java.util.Currency;
import java.util.Locale;
import java.util.Set;

/**
 * Created by xuzhike on 2016/1/23.
 * http://www.java2s.com/Code/Java/JDK-7/UsingCurrencyonJava17.htm
 */
public class CurrencyTest1 {
    public static void main(String[] args) {
        Set<Currency> currencies = Currency.getAvailableCurrencies();
        for (Currency currency : currencies) {
            System.out.println("" + currency.getDisplayName() + " - "
                    + currency.getDisplayName(Locale.GERMAN) + " - "
                    + currency.getNumericCode());
        }

    }
}
